package org.ydsw.data.manage.service;

import org.springframework.stereotype.Service;
import org.ydsw.data.manage.entity.ScheduleJobLogEntity;


import java.util.List;
import java.util.Map;

/**
 * <p>Title: ScheduleJobLogService </p>
 * <p>Description：
 * 任务日志保存接口
 *
 * </p>
 * @author admin
 * @version 1.0.0
 */
@Service
public interface ScheduleJobLogService {

    /**
     * 根据ID，查询定时任务日志
     *
     * @param jobId jobId
     * @return entity
     */
    ScheduleJobLogEntity queryObject(Long jobId);

    /**
     * 查询定时任务日志列表
     *
     * @param map map
     * @return list
     */
    List<Map<String, Object>> queryList(Map<String, Object> map);

    /**
     * 查询总数
     *
     * @param map map
     * @return int
     */
    int queryTotal(Map<String, Object> map);

    /**
     * 保存定时任务日志
     *
     * @param log log
     */
    void save(ScheduleJobLogEntity log);

}
